package com.secsys.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TbSysRole entity. @author MyEclipse Persistence Tools
 */

public class TbSysRole implements java.io.Serializable {

	// Fields

	private Integer id;
	private String remark;
	private String role;
	private String statue;
	private TbBbsModule tbBbsModule;

	private Set tbSysRoleResources = new HashSet(0);
	// private Set tbSysGroups = new HashSet(0);
	private Set tbSysUsers = new HashSet(0);

	// Constructors

	/** default constructor */
	public TbSysRole() {
	}

	/** minimal constructor */
	public TbSysRole(String role, String statue) {
		this.role = role;
		this.statue = statue;
	}

	/** full constructor */
	public TbSysRole(String role, String statue, String remark,
			Set tbSysGroups, Set tbSysUsers, Set tbSysResources) {
		this.role = role;
		this.statue = statue;
		this.remark = remark;
		// this.tbSysGroups = tbSysGroups;
		this.tbSysUsers = tbSysUsers;
		// this.tbSysResources = tbSysResources;
	}

	public Integer getId() {
		return this.id;
	}

	public String getRemark() {
		return this.remark;
	}

	// Property accessors

	public String getRole() {
		return this.role;
	}

	public String getStatue() {
		return this.statue;
	}

	public TbBbsModule getTbBbsModule() {
		return tbBbsModule;
	}

	public Set getTbSysRoleResources() {
		return tbSysRoleResources;
	}

	public Set getTbSysUsers() {
		return this.tbSysUsers;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setRole(String role) {
		this.role = role;
	}

	//
	// public Set getTbSysGroups() {
	// return this.tbSysGroups;
	// }
	//
	// public void setTbSysGroups(Set tbSysGroups) {
	// this.tbSysGroups = tbSysGroups;
	// }

	public void setStatue(String statue) {
		this.statue = statue;
	}

	public void setTbBbsModule(TbBbsModule tbBbsModule) {
		this.tbBbsModule = tbBbsModule;
	}

	public void setTbSysRoleResources(Set tbSysRoleResources) {
		this.tbSysRoleResources = tbSysRoleResources;
	}

	public void setTbSysUsers(Set tbSysUsers) {
		this.tbSysUsers = tbSysUsers;
	}

}